package com.ruoyi.process.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.ruoyi.process.mapper.ProcessflowMapper;
import com.ruoyi.process.domain.Processflow;
import com.ruoyi.process.service.IProcessflowService;

import javax.annotation.Resource;

/**
 * ProcessFlowService业务层处理
 * 
 * @author wuenguo
 * @date 2025-06-10
 */
@Service
public class ProcessflowServiceImpl implements IProcessflowService 
{
    @Resource
    private ProcessflowMapper processflowMapper;

    /**
     * 查询ProcessFlow
     * 
     * @param pfid ProcessFlow主键
     * @return ProcessFlow
     */
    @Override
    public Processflow selectProcessflowByPfid(Long pfid)
    {
        return processflowMapper.selectProcessflowByPfid(pfid);
    }

    /**
     * 查询ProcessFlow列表
     * 
     * @param processflow ProcessFlow
     * @return ProcessFlow
     */
    @Override
    public List<Processflow> selectProcessflowList(Processflow processflow)
    {
        return processflowMapper.selectProcessflowList(processflow);
    }

    /**
     * 新增ProcessFlow
     * 
     * @param processflow ProcessFlow
     * @return 结果
     */
    @Override
    public int insertProcessflow(Processflow processflow)
    {
        return processflowMapper.insertProcessflow(processflow);
    }

    /**
     * 修改ProcessFlow
     * 
     * @param processflow ProcessFlow
     * @return 结果
     */
    @Override
    public int updateProcessflow(Processflow processflow)
    {
        return processflowMapper.updateProcessflow(processflow);
    }

    /**
     * 批量删除ProcessFlow
     * 
     * @param pfids 需要删除的ProcessFlow主键
     * @return 结果
     */
    @Override
    public int deleteProcessflowByPfids(Long[] pfids)
    {
        return processflowMapper.deleteProcessflowByPfids(pfids);
    }

    /**
     * 删除ProcessFlow信息
     * 
     * @param pfid ProcessFlow主键
     * @return 结果
     */
    @Override
    public int deleteProcessflowByPfid(Long pfid)
    {
        return processflowMapper.deleteProcessflowByPfid(pfid);
    }
}
